package com.core.contant;


public enum BusinessExceptionCode {
    RESOURCE_NOT_MODIFIED("304", "resource not modified."),
    ILLEGAL_REQUEST_PARAM("400", "illegal request param."),
    UNAUTHORIZED_OPERATOR("401", "unauthorized operator."),
    RESOURCE_NOT_FOUND("404", "resource not found."),

    USERS_NOT_EXIST("304001", "密码不正确，或者账号不存在。请重新登录"),
    USERS_REGISTE_DEFEATED("304002", "注册失败"),
    USERS_NAME_IS_EXISTING("304003", "用户名字已经存在"),
    USERS_UPDATE_DEFEATED("304004", "修改失败"),
    FILE_ADD_DEFEATED("304005", "文件解析失败"),
    FILE_NOT_EXIST("304006", "没有文件");

    private String errorCode;
    private String errorMsg;

    BusinessExceptionCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

}

